#!/usr/bin/env python
#coding=utf-8 

from Tkinter import *

def resize(ev=None):
	label.config(font='Helvetica -%d bold' % scale.get())

top = Tk()
top.geometry('300x100')
label = Label(top, text='Hello World!', font='Helvetica -12 bold')
label.pack(fill=Y, expand=1)

scale = Scale(top, from_=10, to=40,orient=HORIZONTAL, command=resize)
scale.set(12)
scale.pack(fill=X, expand=1)

quit = Button(top, text="QUIT", command=top.quit, activeforeground='white',
	activebackground='red')
quit.pack()
mainloop()


# 后面有  python 对于 world 插件  python  cgi 详细  python 扩展  三个大类 
